﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
using DPW.Business.Model;

namespace DPW.Business.Helper
{
    public class CategoryHelper
    {
        public static RouteValueDictionary CreateRouteDictionary(CategoryModel categoryModel)
        {
            RouteValueDictionary routeDictionary = new RouteValueDictionary();
            routeDictionary.Add("id", categoryModel.Id);
            routeDictionary.Add("title", categoryModel.Name);
            return routeDictionary;
        }
    }
}
